package task;

import com.sun.org.apache.bcel.internal.generic.NEW;

import java.time.Period;
import java.util.Scanner;

/**
 * @Author Weton Li
 * @Date 2021/3/16 21:01
 */
public class Test {

    public static void main(String[] args) {
        CustomerService customerService = new CustomerService();

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入员工的GMV CR RT实际绩效");
        int GMVinput = scanner.nextInt();
        double CRinput = scanner.nextDouble();
        double RTinput = scanner.nextDouble();

        Performance performance = new Performance();

        ExtraBonusService extraBonusService = new ExtraBonusServiceImpl();
        FixedBonusService fixedBonusService = new FixedBonusServiceImpl();

        double fixedSalary = fixedBonusService.getFixedSalary(GMVinput, CRinput, RTinput);

        double extraBonus = extraBonusService.getExtraBonus(GMVinput);

        // 比较
        if (fixedSalary < extraBonus) {
            System.out.println("固定奖金高");
        }

    }
}
